/**
 * 
 */
package com.oauth.twitter.server.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.oauth.common.server.beans.OAuthConfigBean;

/**
 * @author asanthan
 * 
 */
@Component
public class TwitterOAuthConfig extends OAuthConfigBean {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.oauth.common.server.beans.OAuthConfigBean#setConsumerKey(java.lang
	 * .String)
	 */
	@Override
	@Value("${twitter.consumer.key}")
	public void setConsumerKey(String pConsumerKey) {
		// TODO Auto-generated method stub
		super.setConsumerKey(pConsumerKey);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.oauth.common.server.beans.OAuthConfigBean#setConsumerSecret(java.
	 * lang.String)
	 */
	@Override
	@Value("${twitter.consumer.secret}")
	public void setConsumerSecret(String pConsumerSecret) {
		// TODO Auto-generated method stub
		super.setConsumerSecret(pConsumerSecret);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.oauth.common.server.beans.OAuthConfigBean#setProductionCallBackUrl
	 * (java.lang.String)
	 */
	@Override
	@Value("${twitter.callbackurl.production}")
	public void setProductionCallBackUrl(String pProductionCallBackUrl) {
		// TODO Auto-generated method stub
		super.setProductionCallBackUrl(pProductionCallBackUrl);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.oauth.common.server.beans.OAuthConfigBean#setDevelopmentCallBackUrl
	 * (java.lang.String)
	 */
	@Override
	@Value("${twitter.callbackurl.development}")
	public void setDevelopmentCallBackUrl(String pDevelopmentCallBackUrl) {
		// TODO Auto-generated method stub
		super.setDevelopmentCallBackUrl(pDevelopmentCallBackUrl);
	}

}
